<?php

namespace Sisesporte\Entity;

use Doctrine\ORM\Mapping as ORM,
        Doctrine\Common\Collections\ArrayCollection;

/**
 * @ORM\Entity
 * @ORM\Table(name="plano_saude")
 * @ORM\Entity(repositoryClass="Sisesporte\Repository\PlanoSaudeRepository")
 */
class PlanoSaude {

    public function __construct($options = null) {
        Configurator::configure($this, $options);
        $this->planoSaude = new ArrayCollection;
    }

    /**
     * @var integer $sqPlanoSaude
     * @ORM\Column(name="sq_plano_saude", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $sqPlanoSaude;

    /**
     * @var string $noPlanoSaude
     * @ORM\Column(name="no_plano_saude", type="text", nullable=false)
     */
    protected $noPlanoSaude;

    /**
     * @var boolean $stAtivo
     * @ORM\Column(name="st_ativo", type="boolean", nullable=false)
     */
    protected $stAtivo;

    /**
     * @ORM\OneToMany(targetEntity="Sisesporte\Entity\Aluno", mappedBy="sq_plano_saude")
     */
    protected $planoSaude;

    public function getSqPlanoSaude() {
        return $this->sqPlanoSaude;
    }

    public function getNoPlanoSaude() {
        return $this->noPlanoSaude;
    }

    public function setNoPlanoSaude($noPlanoSaude) {
        $this->noPlanoSaude = $noPlanoSaude;
        return $this;
    }

    public function getStAtivo() {
        return $this->stAtivo;
    }

    public function setStAtivo($stAtivo) {
        $this->stAtivo = $stAtivo;
        return $this;
    }

    public function getPlanoSaude() {
        return $this->planoSaude;
    }

    public function setPlanoSaude($planoSaude) {
        $this->planoSaude = $planoSaude;
        return $this;
    }

    public function toArray() {
        return array(
            'sqPlanoSaude' => $this->getSqPlanoSaude(),
            'noPlanoSaude' => $this->getNoPlanoSaude(),
            'stAtivo' => $this->getStAtivo(),
            'planoSaude' => $this->getPlanoSaude(),
        );
    }

}
